<!---
	Title:		EPAR1.1 
	Author:		Bruce Frick
	Purpose:	Step3 Confirmation page
--->

<cfset BASE = CreateObject("component", "cfc.base") />
<Cfset baseQueries = CreateObject("component", "#session.rootDir#.cfc.queries") />
<cfinclude template="/code_lib/SCF_Employee.cfm">
<cfinclude template="/code_lib/SCF_HR.cfm">
<cfinclude template="/code_lib/SCF_REGEX.cfm">
<cfoutput>
<!---HTML header, css links, js links, and page title--->
#BASE.htmlHeader(
	"", <!---JS links--->
   "", <!---CSS links--->
   "Step 3: Confirmation", <!---Page Title--->
   "Status" <!---Active Nav Link--->
)#
<!---HTML header, css links, js links, and page title--->
    
    
<cfif Session.strAuthType NEQ ''>
	
    <!---Query objects--->
    <cfset QUERIES = {
        GetEmpInfo = baseQueries.funcGetEmpInfo(URL.StepID, 1)
    } />
    <!---Query objects--->
    
    <cfset Supervisor = SCF_Employee_GetEmployeeInfo_Basic(QUERIES.GetEmpInfo.SupervisorID) />
    
    <cfset Display = "The individual, '#QUERIES.GetEmpInfo.First# 
            #QUERIES.GetEmpInfo.Last#', was a No Show for Orientation. 
                Please contact HR if you have any questions.">
    <cfset Subject = "Employee Update: Orientation No Show">
	
    <h1 class="title">Step 3: Confirmation</h1>
    <div class="entry">
        <p>#Display#</p>	
        
        <cfmail from="helpdesk@scf.cc" to="#Supervisor.Email#" type="html" subject="#Subject#">
            <p>#Display#</p>	           	
        </cfmail> 
        <p>Thank you for using E-PAR. A status update has been sent via email to the supervisor.</p>                    
        <p>Enter "Orientation" data for another user?  Click <a href="Step3-Orientation1.cfm">Here</a></p>
        
    </div>

<cfelse>
    <cfinclude template="denied.cfm">
</cfif>


<!---HTML footer, closes html and body tags.  Any footer info goes here--->
#BASE.htmlFooter()#
<!---HTML footer, closes html and body tags.  Any footer info goes here--->
</cfoutput>